package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.ByOrders;

/**
 * 订单Service接口
 * 
 * @author ruoyi
 * @date 2024-02-01
 */
public interface IByOrdersService 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public ByOrders selectByOrdersById(String id);

    /**
     * 查询订单列表
     * 
     * @param byOrders 订单
     * @return 订单集合
     */
    public List<ByOrders> selectByOrdersList(ByOrders byOrders);

    /**
     * 新增订单
     * 
     * @param byOrders 订单
     * @return 结果
     */
    public int insertByOrders(ByOrders byOrders);

    /**
     * 修改订单
     * 
     * @param byOrders 订单
     * @return 结果
     */
    public int updateByOrders(ByOrders byOrders);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteByOrdersByIds(String[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteByOrdersById(String id);

    /**
     * 订单总金额
     *
     * @param
     * @return 结果
     */
    public String totalPaid(String beginTime,String endTime);
}
